<h2><?php echo $headding; ?></h2>

<?php if( $query->num_rows( ) > 0 ) : ?>

	<?php  
		foreach( $query->result( ) as $row ) {
	    	echo "<p>comment: "  . $row->body   . "</p>";
	    	echo "<p>author:  "  . $row->author . "</p>";
	    	echo "<hr>";
		}
	?>
	
<?php endif; ?>

<p><?php echo anchor( 'blog', 'Back' ); ?></p>

<?php echo form_open( 'blog/BlogEntry' ); ?>
<?php echo form_hidden( 'entry_id', $this->uri->segment( 3 ) ); ?>

	<form>
	  <p><textarea name="body" rows="10" cols="50"></textarea></p>
	  <p><input type="text" name="author" /> - author</p>
	  <p><input type="submit" value="Senden" /></p>
	  <hr>
	</form>

<?php echo form_close( ); ?>